/**
 * @作者 chengxinxiaofeng
 * @Author ouxueting
 */
package com.chinaunicom.tour.sys.mapper;

import java.util.List;

import com.chinaunicom.tour.sys.entity.User;
import com.chinaunicom.tour.sys.entity.UserFollow;
import com.chinaunicom.tour.sys.model.UserFollowModel;

public interface UserFollowMapper {

    int update(UserFollow entity);

    UserFollow findById(String id);



    /////////////
    int add(UserFollow entity);
    int delete(UserFollow entity);
    UserFollow findByUserIdAndFollowUserId(UserFollowModel queryModel);
    List<UserFollow> findList(UserFollowModel queryModel);

    List<User> followPageQuery(UserFollowModel queryModel);
    int followPageQueryCount(UserFollowModel queryModel);
    List<User> followedPageQuery(UserFollowModel queryModel);
    int followedPageQueryCount(UserFollowModel queryModel);
}
